package cn.tedu.fresheveryday.service.impl;

import cn.tedu.fresheveryday.mapper.CommentMapper;
import cn.tedu.fresheveryday.pojo.vo.CommentVO;
import cn.tedu.fresheveryday.service.ICommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentServiceImpl implements ICommentService {
    @Autowired
    CommentMapper mapper;
    
    @Override
    public List<CommentVO> selectByProductId(Integer productId) {
        return mapper.selectByProductId(productId);
    }

}